<template>
  <div class="level">
    <h1>医院</h1>
    <div class="content">
      <div class="left">等级:</div>
      <ul>
        <li class="active">全部</li>
        <li>三级甲等</li>
        <li>三级甲等</li>
        <li>三级甲等</li>
        <li>三级甲等</li>
        <li>三级甲等</li>
      </ul>
    </div>
  </div>
</template>

<script setup lang="ts">
import { reqHospitalLevelAndRegion } from '@/api/home'
import { onMounted } from 'vue'
onMounted(() => {
  getHospitalLevelAndRegion()
})
// 获取医院等级和地区
const getHospitalLevelAndRegion = async () => {
  const data = await reqHospitalLevelAndRegion('hostType')
  console.log(data)
}
</script>
<style lang="scss" scoped>
.level {
  color: #7f7f7f;
  h1 {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
  }
  .content {
    display: flex;
    flex-wrap: wrap;
    line-height: 35px;
    .left {
      width: 60px;
      min-width: 60px;
    }
    ul {
      list-style: none;
      display: flex;
      li {
        margin-right: 15px;
        cursor: pointer;
        &.active {
          color: #55a6fe;
        }
        &:hover {
          color: #55a6fe;
        }
      }
    }
  }
}
</style>
